﻿using System.Data;
using MySqlConnector;

namespace K9Nano.Reporting.MySQL.Internals;

internal class MySqlReportingEngineConnectionFactory : IReportingEngineConnectionFactory
{
    private readonly string _connectionString;

    public MySqlReportingEngineConnectionFactory(string connectionString)
    {
        _connectionString = connectionString;
    }

    public IDbConnection Create()
    {
        return new MySqlConnection(_connectionString);
    }
}
